import { Sequelize } from "sequelize";

let { MYSQL_PORT = 0, MYSQL_DB_NAME = '', MYSQL_DB_PASS = '' } = process.env
console.log(MYSQL_PORT, MYSQL_DB_NAME, MYSQL_DB_PASS);

let sequelize = new Sequelize(MYSQL_DB_NAME, "root", MYSQL_DB_PASS, {
  host: "localhost",
  dialect: "mysql",
  //@ts-ignore
  port: MYSQL_PORT
})

export default sequelize
